package user;

import book.BookList;
import operation.IOperation;

/**
 * @program: 11.19
 * @description:
 * @author: 李鑫月
 * @create: 2021-11-19 17:23
 **/
abstract  public class User {
    protected String name;
    IOperation[] iOperations;
    public User(String name){
        this.name=name;
    }
    abstract  public int  menu();
    public void dowork(int choice, BookList bookList){
        iOperations[choice].work(bookList);
    }
}
